package edu.odu.cs.sstore.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

import org.springframework.security.core.GrantedAuthority;

@Entity
public class Authority implements Serializable, GrantedAuthority {
	
	private static final long serialVersionUID = -4949526157313440837L;
	
	@Id
	private String authority;
	
	protected Authority() {}
	
	public Authority(String authority) {
		this.authority = authority;
	}
	
	public String getAuthority() {
		return authority;
	}
	
	public void setAuthority(String authority) {
		this.authority = authority;
	}

}
